/**
 * 加载中提示
 *
 * @author  hucw
 * @created 2017-06-16
 */
import {Indicator} from 'mint-ui'

let isLoading = false

export default {
  show: function () {
    if (isLoading) {
      return
    }
    isLoading = true
    Indicator.open()
  },

  hide: function () {
    if (!isLoading) {
      return
    }
    isLoading = false
    Indicator.close()
  }
}
